Skip to content

Conversation

@joewyz
Copy link
Contributor

@joewyz joewyz commented Nov 11, 2025

Current implementation for restXml could not parse the error response because the HttpErrorDeserializer is converting the response to document which is not supported in restXml. This PR adds a fix for this to pass protocol tests "InvalidGreetingError" and "ComplexError".

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@joewyz joewyz force-pushed the joewyz/restxml-error-parse-fix branch from d30c5e3 to 78d0aca Compare November 11, 2025 22:02
* @param source Response payload source
* @return String value of the Code element if found
*/
public String parseCodeName(ByteBuffer source) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems out of place on XmlCodec. Maybe move to XmlDeserializer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

XmlDeserializer is package private and we cannot access it if we put it to XmlDeserializer. I think XmlCodec is the only public class under this package, so I put the method here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants